<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
        <title>信息方案资源编辑</title>
        <link rel="stylesheet" href="<%=basePath %>css/style.css">
        <link rel="stylesheet" href="<%=basePath %>css/msg.css">
        <link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
        <link rel="stylesheet" href="<%=basePath %>css/f_style.css">
        <link rel="stylesheet" href="<%=basePath %>css/public.css">
    </head>
    <style>
        textarea:focus {outline: none;}
        .xubox_main {height: auto!important;max-height: 670px!important;}
        .xubox_dialog {height: 45px;}
        .f_ulList3 .f_list span.s04 {cursor: default;}
        .ui_select input.ui_s_t {top: 0px;}
        .ui_select .ui_s_bk a {text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
        .ml50{margin-left:50px;}
        .ml10{margin-left:10px;}
        .w300{width:300px;}
        .w440{width:440px;}
        td{padding:4px !important;}
        .gopg{width:132px !important;}
        .ui_page{padding:0px 20px !important;}
        .submitAreaa{margin: 8px auto 0px auto;}
		.ktab .infoLlist{
			width:47%;
			padding:3px 10px !important;
		    word-break:keep-all;/* 不换行 */
		    white-space:nowrap;/* 不换行 */
		    overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
		    text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用。*/
		}
		.divline{height:0 !important;}
		.pageDiv{width:90%;margin:0 auto;}
    </style>
    <script>
        var basePath = "<%=basePath%>";
    </script>
    <body ng-app="newNextApp">
        <% String ifm_name = request.getParameter("ifm_name"); %>
		<% String ifm_note = request.getParameter("ifm_note"); %>
		<% String groupId = request.getParameter("groupId"); %> 
		<% String ifm_category = request.getParameter("ifm_category"); %>  
		<% String ifm_categoryName = request.getParameter("ifm_categoryName"); %> 
		<% String ifm_type = request.getParameter("ifm_type"); %>
		<% String ifm_pushed = request.getParameter("ifm_pushed"); %>
	    <input type="hidden" value="<%=ifm_name%>" id="ifm_name">
	    <input type="hidden" value="<%=ifm_note%>" id="ifm_note">
	    <input type="hidden" value="<%=groupId%>" id="ifm_groupId">
	    <input type="hidden" value="<%=ifm_category%>" id="ifm_category">
	    <input type="hidden" value="<%=ifm_categoryName%>" id="ifm_categoryName">
	   	<input type="hidden" value="<%=ifm_type%>" id="ifm_type">
	    <input type="hidden" value="<%=ifm_pushed%>" id="ifm_pushed">
    
        <input type="hidden" id="headUserId" value="${userinfo.userId}" />
        <input type="hidden" id="headUserAccount" value="${userinfo.userAccount}" />

        <div class="right" ng-controller="editCtrl">
            <!--内容区-->
            <div class="msg_info_table">
            	<form name="signup_form" novalidate>
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="mtable">

					<tr style="position: relative;">
						<th scope="row" width="100" height="50">频道资源</th>
						<td>
                            <div class="fl ui_select selectListObj ml10">
                                <input type="hidden" id="rscNews" class="infoVal"/>
                                <span class="ui_s_t" id="rscNewsShow"></span>
                                <div class="ui_s_bk" style="display: none;z-index: 1000;">
                                    <a href="javascript:void(0)" type="allSelectNews"><span id="allSelectNewsSpan">选择所有频道</span></a>
                                    <a href="javascript:void(0)" type="partSelectNews"><span id="partSelectNewsSpan">选择部分频道</span></a>
                                    <a href="javascript:void(0)" type="allFilterNews"><span id="allFilterNewsSpan">过滤所有频道</span></a>
                                    <a href="javascript:void(0)" type="partFilterNews"><span id="partFilterNewsSpan">过滤部分频道</span></a>
                                </div>
                            </div>
                            <!-- <span style="display:none;" id="submitSelectNewsText" ></span> -->
                            <div class="fl selectListObj ml50" style="display:none" id="p_newsDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="选择频道" type="p_newsType" ids="{{vm.ifm_getChannel}}">选择频道>></a>
	                        </div>
	                        <span style="display:none;" id="submitFilterNewsText" ng-bind="vm.ifm_notChannel"></span>
	                        <div class="fl selectListObj ml50" style="display:none" id="f_newsDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="过滤频道" type="f_newsType" ids="{{vm.ifm_notChannel}}">过滤频道>></a>
	                        </div>	            
						</td>
					</tr>
                    <tr style="position: relative;">
						<th scope="row" width="100" height="50">微信号资源</th>
						<td>
                            <div class="fl ui_select selectListObj ml10">
                                <input type="hidden" id="rscWeChat" class="infoVal" />
                                <span class="ui_s_t" id="rscWeChatShow"></span>
                                <div class="ui_s_bk" style="display: none;z-index: 1000;">
                                    <a href="javascript:void(0)" type="allSelectWeChat"><span id="allSelectWeChatSpan">选择所有微信号</span></a>
                                    <a href="javascript:void(0)" type="partSelectWeChat"><span id="partSelectWeChatSpan">选择部分微信号</span></a>
                                    <a href="javascript:void(0)" type="allFilterWeChat"><span id="allFilterWeChatSpan">过滤所有微信号</span></a>
                                    <a href="javascript:void(0)" type="partFilterWeChat"><span id="partFilterWeChatSpan">过滤部分微信号</span></a>
                                </div>
                            </div>
                            <span style="display:none;" id="submitSelectWeChatText" ng-bind="vm.ifm_getWechatId"></span>
                            <div class="fl selectListObj ml50" style="display:none" id="p_wechatDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="选择微信号" type="p_wechatType" ids="{{vm.ifm_getWechatId}}">选择微信号>></a>
	                        </div>
	                        <span style="display:none;" id="submitFilterWeChatText" ng-bind="vm.ifm_notWechatId"></span>
	                        <div class="fl selectListObj ml50" style="display:none" id="f_wechatDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="过滤微信号" type="f_wechatType" ids="{{vm.ifm_notWechatId}}">过滤微信号>></a>
	                        </div>                            
						</td>
					</tr>
                    <tr style="position: relative;">
						<th scope="row" width="100" height="50">微博号资源</th>
						<td>
                            <div class="fl ui_select selectListObj ml10">
                                <input type="hidden" id="rscWeibo" class="infoVal" />
                                <span class="ui_s_t" id="rscWeiboShow"></span>
                                <div class="ui_s_bk" style="display: none;z-index: 1000;">
                                    <a href="javascript:void(0)" type="allSelectWeibo"><span id="allSelectWeiboSpan">选择所有微博号</span></a>
                                    <a href="javascript:void(0)" type="partSelectWeibo"><span id="partSelectWeiboSpan">选择部分微博号</span></a>
                                    <a href="javascript:void(0)" type="allFilterWeibo"><span id="allFilterWeiboSpan">过滤所有微博号</span></a>
                                    <a href="javascript:void(0)" type="partFilterWeibo"><span id="partFilterWeiboSpan">过滤部分微博号</span></a>
                                </div>
                            </div>
                            <span style="display:none;" id="submitSelectWeiboText" ng-bind="vm.ifm_getBloggerId"></span>
                            <div class="fl selectListObj ml50" style="display:none" id="p_weiboDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="选择微博号" type="p_weiboType" ids="{{vm.ifm_getBloggerId}}">选择微博号>></a>
	                        </div>
	                        <span style="display:none;" id="submitFilterWeiboText" ng-bind="vm.ifm_notBloggerId"></span>
	                        <div class="fl selectListObj ml50" style="display:none" id="f_weiboDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="过滤微博号" type="f_weiboType" ids="{{vm.ifm_notBloggerId}}">过滤微博号>></a>
	                        </div>                           
						</td>
					</tr>
                    <tr style="position: relative;">
						<th scope="row" width="100" height="50">论坛资源</th>
						<td>
                            <div class="fl ui_select selectListObj ml10">
                                <input type="hidden" id="rscBBS" class="infoVal" />
                                <span class="ui_s_t" id="rscBBSShow"></span>
                                <div class="ui_s_bk" style="display: none;z-index: 1000;">
                                    <a href="javascript:void(0)" type="allSelectBBS"><span id="allSelectBBSSpan">选择所有论坛</span></a>
                                    <a href="javascript:void(0)" type="partSelectBBS"><span id="partSelectBBSSpan">选择部分论坛</span></a>
                                    <a href="javascript:void(0)" type="allFilterBBS"><span id="allFilterBBSSpan">过滤所有论坛</span></a>
                                    <a href="javascript:void(0)" type="partFilterBBS"><span id="partFilterBBSSpan">过滤部分论坛</span></a>
                                </div>
                            </div>
                            <span style="display:none;" id="submitSelectBBSText" ng-bind="vm.ifm_getBbsName"></span>
                            <div class="fl selectListObj ml50" style="display:none" id="p_bbsDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="选择论坛" type="p_bbsType" ids="{{vm.ifm_getBbsName}}">选择论坛>></a>
	                        </div>
	                        <span style="display:none;" id="submitFilterBBSText" ng-bind="vm.ifm_notBbsName"></span>
	                        <div class="fl selectListObj ml50" style="display:none" id="f_bbsDiv">
	                            <a href="javascript:void(0)" style="color:#1cb99a;" class="editExaDataBtn" title="过滤论坛" type="f_bbsType" ids="{{vm.ifm_notBbsName}}">过滤论坛>></a>
	                        </div>                       
						</td>
					</tr>
					
					<tr>
                        <th scope="row" width="100">匹配关键词</th>
                        <td style="padding:10px 20px;">
                        	<textarea type="text" id="kwd" class="ui_text disui" ng-model="vm.ifm_getKeyword" style="padding:8px 8px;width:98%;min-height:125px;overflow-y:visible;vertical-align:middle;line-height:1.5" 
                        		ng-class="{error: signup_form.name.$dirty && signup_form.name.$invalid}" name="name" ng-maxlength="5000"></textarea>
                        	<div class="error">
							    <small class="error" ng-show="signup_form.name.$error.maxlength" style="color:red">
									* 匹配关键词限于5000字以内！
							    </small>
							</div>
							<div class="ts">
								<div style="float:left"><span id="match_title" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配标题&nbsp;&nbsp;</div>
								<div style="float:left; margin-left:20px;"><span id="match_body" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配正文&nbsp;</div>
							</div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row" width="100">过滤关键词</th>
                        <td style="padding:10px 20px;">
                        	<textarea type="text" id="fwd" class="ui_text disui" ng-model="vm.ifm_notKeyword" style="padding:8px 8px;width:98%;min-height:125px;vertical-align:middle;line-height:1.5 "
                        		ng-class="{error: signup_form.note.$dirty && signup_form.note.$invalid}" name="note" ng-maxlength="5000"></textarea>
                        	 <div class="error">
							    <small class="error" ng-show="signup_form.note.$error.maxlength" style="color:red">
									* 过滤关键词限于5000字以内！
							    </small>
							</div>
                        	<div class="ts">
								<div style="float:left"><span id="match_title2" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配标题&nbsp;&nbsp;</div>
								<div style="float:left; margin-left:20px;"><span id="match_body2" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配正文&nbsp;</div>
							</div>
                        </td>
                    </tr>
                </table>
                </form>
                <div class="btn_bk">
                    <a href="javascript:void(0)" class="ui_btn yellow release" ng-disabled="signup_form.$invalid" ng-click="domAjax('release')" id="publish">确定</a>
                    <a href="javascript:void(0)" class="ui_btn green" ng-click="cancel('')">取消</a>
                </div>
            </div>
            <!--内容区-->
        </div>
		<!--以下是弹出浮层显示的部分-->
		<div class="layerInfoArea f_zuZhiGuanLiLayer1 f_gongSiLieBiaoLayer" id="editExaDataLayer">
			<i class="closeBtn"></i>
			<div class="f_title" id="editExaData_tile">
			</div>
			<input type="hidden" id="hiddenType" />
			<div class="CustomsSearch" style="position:relative;width:90%;margin:0 auto;left:0;line-height: 50px;">
				<div class="texts" style="width:auto;">
					<span id="editExaData_listName" ></span>
					<input type="text" id="checkQueryInput" class="enterKeyDownElement ui_text" style="margin-left:10px"/>
				</div>
				<a href="javascript:void(0)" class="ui_btn w82 h30 green enterKeyDownElement" id="checkQueryBtn">查询</a>
 				<div class="selectAllAreaGoGo" style="float:left;position:static; margin-left:40px;" >
					<div>
						<span class="ui_checkbox allSel" checkedbtn="false" checkeddefault="false"></span>
						<font>本页全选</font>
					</div>
					<!--<div class="infoLlist">
						<font class="reDefault">重置默认</font>
					</div>-->
				</div> 
			</div>
			<!-- <div id="CustomsAreaList" class="autoYHidden CustomsAreaList" style="max-height:260px;border-bottom:1px solid #ddd;width:90%;margin:0 auto;"></div> -->
			<div class="key_table infoLlist" style="border:1px solid #dad9d7;width:90%;margin:0 auto;max-height:465px;overflow-y:auto">
				<div border="0" id="tableAreaList" cellspacing="2" cellpadding="0" class="ktab">
				</div>
			</div>
			<div class="divline"></div>
			<div class="pageDiv"></div>
			<div class="divline"></div>
			<div class="submitAreaa submitAreaaGoGo1" style="border-top: 0;">
				<!-- <a href="javascript:void(0)" class="ui_btn yellow" id="editExaSubmitBtn">确定</a> -->
				<a href="javascript:void(0)" class="ui_btn green cancelLayer">确定</a>
			</div>
			<div class="divline"></div>
		</div>
        <script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
        <script src="<%=basePath %>js/jquery.form.js"></script>
        <script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
        <script src="<%=basePath %>js/layer/layer.min.js"></script>
        <script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
        <script src="<%=basePath %>js/laydate/laydate.js"></script>
        <script src="<%=basePath %>js/config.js"></script>
		<script src="<%=basePath %>js/f_paging4.js"></script>
        <link rel="stylesheet" href="<%=basePath %>js/Jcrop/css/jquery.Jcrop.css">
        <script src="<%=basePath %>js/Jcrop/js/jquery.Jcrop.js" defer></script>
        <script src="<%=basePath %>js/userSession.js"></script>
        <script src="<%=basePath %>programme/js/angular.programmeNewNext.js"></script>
		<script>
	        function callSback() {
	            $('#Msearch').trigger('click');
	        }
	        function jsCk(t) {
	            if(!/^[1-9][0-9]*$/g.test(t.value)) {
	                t.value = "";
	                return false;
	            }
	        }
		</script>
    </body>

</html>